package com.chenlong.pc.service.impl;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.chenlong.pc.dao.LogDao;
import com.chenlong.pc.entity.Log;

@Service
public class LogService {

	private LogDao logDao;
	
	@Autowired
	public void setLogDao(LogDao logDao) {
		this.logDao = logDao;
	}

	
	public List<Log> findAll(Map<String, Object> params) {
		return logDao.findAll(params);
	}

	
	public Log findById(Map<String, Object> params) {
		return logDao.findById(params);
	}

	
	public List<Log> findTop(Map<String, Object> params) {
		return logDao.findTop(params);
	}

	
	public int countAll(Map<String, Object> params) {
		return logDao.countAll(params);
	}

	
	public void delete(Map<String, Object> params) {
		logDao.delete(params);
	}

	
	public void save(Map<String, Object> params) {
		logDao.save(params);
	}

	
	public void update(Map<String, Object> params) {
		logDao.update(params);
	}
	
}
